using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.ItemMasters
{
    public partial interface IUnitAppService
    {
        Task<UnitDto> GetAsync(Guid id);
        Task<UnitDto> FindAsync(string filter);
        Task<UnitDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<UnitDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<UnitDto>> QueryAsync(FilterGroupRequestDto input);
        Task<UnitDto> CreateAsync(UnitCreateDto input);
        Task<UnitDto> UpdateAsync(Guid id, UnitUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}
